package cn.school.entity;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
public class Subject implements Serializable {
    private long id,gradeId;
    private String kechengming;
    private int classhour;

    private String gname;
    public Subject() {
    }

    public Subject(long id, long gradeId, String subjectname, int classhour) {
        this.id = id;
        this.gradeId = gradeId;
        this.kechengming = subjectname;
        this.classhour = classhour;
    }

    public Subject(long gradeId, String subjectname, int classhour) {
        this.gradeId = gradeId;
        this.kechengming = subjectname;
        this.classhour = classhour;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getGradeId() {
        return gradeId;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public void setGradeId(long gradeId) {
        this.gradeId = gradeId;
    }

    public String getSubjectname() {
        return kechengming;
    }

    public void setSubjectname(String subjectname) {
        this.kechengming = subjectname;
    }

    public int getClasshour() {
        return classhour;
    }

    public void setClasshour(int classhour) {
        this.classhour = classhour;
    }

    @Override
    public String toString() {
        return "Subject{" +
                "id=" + id +
                ", gradeId=" + gradeId +
                ", subjectname='" + kechengming + '\'' +
                ", classhour=" + classhour +
                '}';
    }
}
